package com.aca.impl;

import com.aca.dao.SceneDAO;
import com.aca.entity.Scene;
import com.aca.service.RoleService;
import com.aca.service.SceneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("sceneService")
public class SceneServiceImpl implements SceneService {
    @Autowired
    private SceneDAO sceneDao;

    public void setSceneDao(SceneDAO sceneDao) {
        this.sceneDao = sceneDao;
    }

    @Override
    public void addScene(Scene scene) {
        sceneDao.addScene(scene);
    }

    @Override
    public void updateScene(Scene scene) {
        sceneDao.updateScene(scene);
    }

    @Override
    public void delScene(String name) {
        sceneDao.delScene(name);
    }

    @Override
    public Scene findScene(String name) {
        return sceneDao.findScene(name);
    }

    @Override
    public List pageScene(int pageCur, int pageSize, Scene scene) {
        return sceneDao.pageScene(pageCur,pageSize,scene);
    }

    @Override
    public int getSceneTol() {
        return sceneDao.getSceneTol();
    }

    @Override
    public List findAllScene() {
        return findAllScene();
    }

    @Override
    public List findSceneBySno(int sno) {
        return findSceneBySno(sno);
    }

    @Override
    public boolean existScene(String name) {
        return sceneDao.existScene(name);
    }
}
